package com.itheima.stock.controller;

import com.itheima.stock.pojo.entity.SysLog;
import com.itheima.stock.service.LogService;
import com.itheima.stock.vo.req.LogsPageVo;
import com.itheima.stock.vo.resp.PageResult;
import com.itheima.stock.vo.resp.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 日志相关服务
 */
@RestController
@RequestMapping("/api")
public class LogController {

    @Autowired
    private LogService logService;

    @PostMapping("logs")
    public R<PageResult<SysLog>> getLogsByPage(@RequestBody LogsPageVo logsPageVo){ return logService.getLogsByPage(logsPageVo); }

}
